<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test for jQuery validate() plugin</title>

<link rel="stylesheet" media="screen" href="../demo/css/screen.css">
<link rel="stylesheet" href="../../../themes/flora/flora.all.css" media="screen" title="Flora (Default)">

<script src="../lib/jquery.js"></script>
<script src="../../../ui/current/ui.tabs.js"></script>
<script src="../dist/jquery.validate.js"></script>
<script src="firebug/firebug.js"></script>

<script>

$().ready(function() {
	$("#commentForm").validate({debug:true});
	$("#example > ul").tabs();
});
</script>

<style>
form.cmxform { width: 470px; }
</style>

</head>
<body>

	<form class="cmxform" id="commentForm" method="get" action="">

		<div id="example" class="flora">
	        <ul>

	            <li><a href="#fragment-1"><span>One</span></a></li>
	            <li><a href="#fragment-2"><span>Two</span></a></li>
	            <li><a href="#fragment-3"><span>Three</span></a></li>
	        </ul>
	        <div id="fragment-1">
					<fieldset>
						<legend>A simple comment form with submit validation and default messages</legend>
						<p>
							<label for="cname">Name (required, at least 2 characters)</label>
							<input id="cname" name="name" required minlength="2">
						<p>
							<label for="cemail">E-Mail (required)</label>
							<input id="cemail" name="email" required type="email">
						</p>
						<p>
							<label for="curl">URL (optional)</label>
							<input id="curl" name="url" type="url" value="">
						</p>
						<p>
							<label for="ccomment">Your comment (required)</label>
							<textarea id="ccomment" name="comment" required></textarea>
						</p>
					</fieldset>

	        </div>
	        <div id="fragment-2">
	            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
	            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
	        </div>
	        <div id="fragment-3">
	            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
	            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
	            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
	        </div>
	    </div>
		<p>
			<input class="submit" type="submit" value="Submit">
		</p>

	</form>

</body>
</html>
